package com.xiaomi.service.Impl;

import com.xiaomi.dao.ZhongleiMapper;
import com.xiaomi.entity.Zhonglei;
import com.xiaomi.service.ZhongleiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName ZhongleiServiceImpl
 * @Description TODO
 * @Author 獄
 * @Date 2021/11/30 14:03
 */
@Service
public class ZhongleiServiceImpl implements ZhongleiService {
    @Resource
    ZhongleiMapper zhongleiMapper;

    @Override
    public List<Zhonglei> selectAll(Map<String, Object> pars) {
        return zhongleiMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return zhongleiMapper.count(pars);
    }

    @Override
    public int update(Zhonglei zhonglei) {
        return zhongleiMapper.update(zhonglei);
    }

    @Override
    public int add(Zhonglei zhonglei) {
        return zhongleiMapper.add(zhonglei);
    }

    @Override
    public int del(int id) {
        return zhongleiMapper.del(id);
    }
}
